package com.zqh.orderitemquery.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zqh.myfmmall.entity.OrderItem;
import com.zqh.myfmmall.entity.Orders;
import com.zqh.myfmmall.result.Result;
import com.zqh.orderitemquery.dao.OrderItemDao;
import com.zqh.orderitemquery.service.OrderItemQueryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-18 2:19
 */
@Service("orderItemQueryService")
public class OrderItemQueryServiceImpl extends ServiceImpl<OrderItemDao, OrderItem> implements OrderItemQueryService{


    @Override
    public Result getByOrderId(String orderId) {
        List<OrderItem> orderItems = query().eq("order_id",orderId).list();
        return Result.success(orderItems);
    }
}
